@extends('desktop.template.bootstrap')
@section('scripts')
<link rel="stylesheet" href="{{asset('css/public-index.css')}}" />
@endsection
@section('header')
@include('desktop.template.navbar-complete')
@endsection
@section('content')
<style>
	input:-webkit-autofill {
	  	-webkit-box-shadow: 0 0 0px 1000px #FFF inset;
		transition: background-color 5000s ease-in-out 0s;
	}
</style>
<section class="books" style="padding-top: 150px; padding-bottom: 240px;">
	<div class="container">
		<div class="panel">
			<div class="row" >
				<div class="col-sm-12">
    				<div class="col-sm-offset-5 col-sm-2" >
						<h3>用户登录</h3>
					</div>
   				</div>
			</div>
			<div class="panel-body">
				{!! Form::open(array('url' => 'login', 'class' => 'form-horizontal')) !!}
					@if (Session::has('msg'))
					<div class="form-group">
						<div class="alert alert-dismissable alert-danger col-sm-offset-4 col-sm-4">
							<button type="button" class="close" data-dismiss="alert">×</button>
							<strong>消息提示：</strong> {{ Session::get('msg') }}
						</div>
					</div>
					@elseif ($errors->any())
					<div class="form-group">
						<div class="alert alert-danger col-sm-offset-4 col-sm-4" role="alert">
							<button type="button" class="close" data-dismiss="alert">×</button>
							<strong>消息提示：</strong> {{ $errors->first() }}
						</div>
					</div>
					@endif
					<div class="form-group">
						{!! Form::label('cellphone', '手机号', array('class' => 'col-sm-4 control-label')) !!}
						<div class="col-sm-4">
							{!! Form::text('cellphone', null, array('class' => 'form-control', 'placeholder' => '请输入手机号')) !!}
						</div>
					</div>
					<div class="form-group">
						{!! Form::label('password', '密码', array('class' => 'col-sm-4 control-label')) !!}
						<div class="col-sm-4">
							{!! Form::password('password', array('class' => 'form-control', 'placeholder' => '请输入密码')) !!}
						</div>
					</div>
  					<div class="form-group" style="padding-top:20px;">
    					<div class="col-sm-offset-4 col-sm-4">
      						<button type="submit" class="btn btn-danger col-sm-12">登录</button>
   						</div>
   						<div class="col-sm-offset-4 col-sm-4" style="padding-top: 10px;">
   							<div class="col-sm-6 text-left" style="padding-left: 0px; cursor: pointer;"><a href="{{ url('/resetpassword') }}">忘记密码</a></div>
   							<div class="col-sm-6 text-right" style="padding-right: 0px; cursor: pointer;"><a href="{{ url('/register') }}">免费注册</a></div>
   						</div>
  					</div>
				{!! Form::close() !!}
			</div>
		</div>
	</div>
</section>
@endsection
